#ifndef _MYDATE_H_
#define _MYDATE_H_
//#include "inc/typedef.h"

#include "inc/_wxWidgets.h"
#include "inc/_oralib.h"

class MyDate
{
private:
    uint32_t _year;
    uint32_t _mon;
    uint32_t _day;
    uint32_t _hour;
    uint32_t _min;
    uint32_t _sec;
public:
    MyDate(const oralib::datetime&);
    MyDate(const wxDateTime&);
    bool operator<(MyDate&) const;
    bool operator>(MyDate&) const;
    bool operator==(MyDate&) const;
    uint32_t get_year() {return _year;}
    uint32_t get_mon() {return _mon;}
    uint32_t get_day() {return _day;}
    uint32_t get_hour() {return _hour;}
    uint32_t get_min() {return _min;}
    uint32_t get_sec() {return _sec;}
    void set_year(uint32_t year) {_year = year;}
    void set_mon(uint32_t mon) {_mon = mon;}
    void set_day(uint32_t day) {_day = day;}
    void set_hour(uint32_t hour) {_hour = hour;}
    void set_min(uint32_t min) {_min = min;}
    void set_sec(uint32_t sec) {_sec = sec;}
};

#endif // _MYDATE_H_
